package com.baizhi.service.impl;

import com.baizhi.dao.CmfzAlbumMapper;
import com.baizhi.entity.CmfzAlbum;
import com.baizhi.service.CmfzAlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CmfzAlbumServiceImpl implements CmfzAlbumService {
    @Autowired
    private CmfzAlbumMapper cmfzAlbumMapper;
    @Override
    public List<CmfzAlbum> selectFirstSixAlbum() {
        return cmfzAlbumMapper.selectFirstSixAlbum();
    }

    @Override
    public List<CmfzAlbum> getAllAlbum() {
        return cmfzAlbumMapper.getAllAlbum();
    }

    @Override
    public CmfzAlbum getOneAlbum(int album_id) {
        return cmfzAlbumMapper.getOneAlbum(album_id);
    }
}
